﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace simDC
{
    public partial class Code : Form
    {
        public Code()
        {
            InitializeComponent();
           
        }

        private void Code_FormClosing(object sender, FormClosingEventArgs e)
        {
            this.Hide();
            e.Cancel = true;    
        }

        private void Code_Load(object sender, EventArgs e)
        {

        }
        public void selectLine(string str)
        {
            string[] temp = editorRTB.Lines;
            for(int i=0;i<temp.Length;i++)
            {
                if(temp[i]==str)
                    editorRTB.Select(editorRTB.Find(temp[i]),str.Length);
            }
            
        }

        public void button1_Click(object sender, EventArgs e)
        {
            selectLine("br et");
        }

    }
}
